package com.fagejiang.springboottest.controllers;

import com.fagejiang.springboottest.config.HomeTown;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 发哥讲Java
 * @version 1.0
 * @date 2021-03-24 14:33
 */
@RestController
public class TestController {
    @Autowired
    HomeTown homeTown;

    @GetMapping("/test")
    public String getTest() {
        return homeTown.toString();
    }
}
